package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.enums.BooleanEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 类目属性批量添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class CategoryAttrBatchInsertRequestDTO extends BaseRequestDTO {

    /**
     * 类目ID
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam (value = "类目ID",required = true)
    private Long categoryId;

    /**
     * 属性信息（json数组对象）
     *
     * @mbggenerated
     */
    @NotNull
    @ApiParam (value = "属性信息[{'attrId':'1','isRequire':'T','sort':'0'}]把单引号替换成双引号",required = true)
    private String attrValue;


    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
